package com.kaidi.dibankecloud.utils;

import android.content.Intent;
import android.databinding.BindingAdapter;
import android.view.View;


/**
 * Created by Administrator on 2017/1/7.
 */

public class CustomBindings {

    @BindingAdapter("targetActivityClass")
    public static void onToolbarJumpTextClick(View view, final Class targetActivityClass){
        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                view.getContext().startActivity(new Intent(view.getContext(),targetActivityClass));
            }
        });
    }
}
